<admintpl file="header" />
</head>
<body>
	<div class="wrap js-check-wrap">
		<ul class="nav nav-tabs">
        <li ><a href="{:U('Admin/Operation/detail',array('id'=>$id))}">基本信息</a></li>
		<li ><a href="{:U('Admin/Operation/LiveTask',array('id'=>$id))}">直播任务</a></li>
		<li class="active"><a href="{:U('Admin/Operation/CommentaryTask',array('id'=>$id))}">解说任务</a></li>
    	</ul>
		<table class="table table-hover table-bordered">
			<thead>
				<tr>
					<th>名称</th>
					<th>封面</th>
					<th>类型</th>
					<th>直播时间</th>
					<th>状态</th>
				</tr>
			</thead>
			<php>$status=array(1=>'未开始',2=>'直播中',3=>'已结束');</php>
			<tbody>
				<foreach name="data" item="vo">
				<tr>
					<td>{$vo.name}</td>
					<td><img src="{$vo.imageUrl}" width="200"></td>
					<td><eq name="vo.baseType" value="0">活动直播<else/>赛事直播</eq></td>
					<td><php>echo date('Y-m-d H:i:s',$vo['startTime']/1000);</php></td>
					<td>{$status[$vo['status']]}</td>
				</tr>
				</foreach>
			</tbody>
		</table>
	</div>
	<script src="__PUBLIC__/js/common.js"></script>
	<script>
	$(document).ready(function(){
		$('input[name="query_form_btn"]').click(function(){
			 $('#query_form').attr('action', $(this).attr('data-action'));
			 $('#query_form').submit();
		});
		
	});
	</script>
</body>
</html>